import { IsString, Max, Min } from 'class-validator'

export class UserCreateDTO {
  @IsString()
  name: string
  @IsString()
  password: string
  @IsString()
  mobile: string
}

export class UserLoginDTO {
  @IsString({ message: '参数错误' })
  mobile: string
  @Max(12)
  @Min(6)
  @IsString({ message: '参数错误' })
  password: string
}
